$(document).ready(function(){
    let timer = null
    timer = setInterval(()=>{
        const time = new Date();
        const nowTime = time.getHours();
        console.log(nowTime)
        if(nowTime===19){
            openTabs('https://juejin.cn/user/center/signin?from=avatar_menu');
        }
    },1000)
    function openTabs(url){
        chrome.tabs.create({url:url},(tab)=>{
            if(tab){
                chrome.tabs.executeScript(tab.id, {file: 'js/content_script.js'});
                clearInterval(timer)
            }
        })
    }
 });